package cn.i7baozh.consumer.service.fallback;

import cn.i7baozh.api.entities.CommonResult;
import cn.i7baozh.consumer.service.PaymentFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author : baoqi.zhang
 * @date :   2022/4/8 14:23
 */
@Slf4j
@Component
public class PaymentFeignServiceFallBackImpl implements PaymentFeignService {

    @Override
    public String getPaymentInfo() {
        log.info("fallback");
        return "down";
    }

    @Override
    public CommonResult<String> abc() {
        log.info("fallback");
        return null;
    }

    @Override
    public String paymentTimeout() {
        log.info("fallback");
        return "paymentTimeout";
    }
}
